<!--
 * @Author: your name
 * @Date: 2020-05-19 17:53:00
 * @LastEditTime: 2020-06-28 10:48:28
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \mobile_project_200106\mobile_project\src\components\tabBar.vue
--> 
<template>
  <van-tabbar route :placeholder="true">
      <van-tabbar-item replace to="/home" icon="shop-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/list" icon="records">列表</van-tabbar-item>
      <van-tabbar-item to="/shopcar" icon="shopping-cart-o" :badge="getBadge">购物车</van-tabbar-item>
      <van-tabbar-item replace to="/user" icon="contact">会员中心</van-tabbar-item>
    </van-tabbar>
</template>

<script>
import { createNamespacedHelpers } from 'vuex'
const { mapGetters } = createNamespacedHelpers('badgeModule')
export default {
computed:{
    ...mapGetters(["getBadge"])
  },
  

}
</script>

<style>

</style>